module.exports = app => {
  // 字段数据类型
  const { STRING, INTEGER } = app.Sequelize;
  // model定义
  const User = app.model.define('user', {
    id: {
      type:INTEGER,
      primaryKey:true,
    },
    coverPictureUrl: {
      type:STRING(255),
      field:"coverPictureUrl"
    },
    nickname: STRING(40),
    type: STRING(32),
    musicCount:{
      type:INTEGER,
      field:"musicCount"
    },
    musicPlayCount:{
      type:INTEGER,
      field:"musicPlayCount",
    },
  },{
    freezeTableName: true,
    timestamps: false
  });
  return User;
};
